{include file="inc/header.html"} 
<?php
$this->_var['indexjs'][] = $this->_var['TMPL_REAL']."/js/index.js";
$this->_var['cpindexjs'][] = $this->_var['TMPL_REAL']."/js/index.js";
$this->_var['indexcss'][] = $this->_var['TMPL_REAL']."/css/index.css";
?>
<script type="text/javascript" src="{$APP_ROOT}/public/runtime/app/deal_cate_conf.js"></script>
<script type="text/javascript" src="{$APP_ROOT}/public/runtime/app/deal_region_conf/{$deal_city.id}.js"></script>
<script type="text/javascript" src="{function name="parse_script" v="$indexjs" c="$cpindexjs"}"></script>
<link rel="stylesheet" type="text/css" href="{function name="parse_css" v="$indexcss"}" />
<div class="blank"></div>
<div class="index_left f_l">
	<div id="main_adv_box" class="main_adv_box">
			<div id="main_adv_img" class="main_adv_img">
				<span rel="1"><adv adv_id="优惠券首页广告位1" /></span>
				<span rel="2"><adv adv_id="优惠券首页广告位2" /></span>
				<span rel="3"><adv adv_id="优惠券首页广告位3" /></span>					
			</div>
			<div id="main_adv_ctl" class="main_adv_ctl">
				<ul>
					<li rel="1">1</li>
					<li rel="2">2</li>
					<li rel="3">3</li>
				</ul>
			</div>
			<script type="text/javascript" src="{$TMPL}/js/index_adv.js"></script>
	</div>
	<div class="blank"></div>
	<div class="index_left_box">
		<div class="box_top">
			<div class="index_title_tag_box">
				<div class="index_title_tag tag_index_left_youhui"></div>				
			</div>
			<div class="f_r">
				<form name="search_store" id="store_form" method="post" action="{url x="store" r="fcate"}">
				<div class="index_selectbox" id="bcate_box"></div>
				<div class="index_selectbox" id="scate_box">所有分类</div>
				<div class="index_selectbox" id="area_box">所有地区</div>
				<div class="index_selectsearch" id="search_store_btn"></div>
				<input type="hidden" name="cid" id="bcate_box_v" value="0" />
				<input type="hidden" name="tid" id="scate_box_v" value="0" />
				<input type="hidden" name="aid" id="area_box_v" value="0" />
				<input type="hidden" name="qid" id="quan_box_v" value="0" />
				<input type="hidden" name="is_redirect"  value="1" />
				</form>
			</div>
		</div>
		<div class="box_main clearfix">
			<div class="blank"></div>
			<div class="index_filter" style="border-bottom:#f2f2f2 solid 1px;">
				<div class="filter_title">类别</div>
				<div class="filter_item clearfix">
					<ul>
					{foreach from=$cate_list item=cate_item}
					<li><a href="{$cate_item.url}" title="{$cate_item.name}">{$cate_item.name}</a>&nbsp;<span>({$cate_item.count})</span></li>
					{/foreach}
					</ul>
				</div>
				<div class="blank"></div>
			</div>
			<div class="blank"></div>
			<div class="index_filter">
				<div class="filter_title">区域</div>
				<div class="filter_item clearfix">
					<ul>
					{foreach from=$area_list item=area_item}
					<li><a href="{$area_item.url}" title="{$area_item.name}">{$area_item.name}</a>&nbsp;<span>({$area_item.count})</span></li>
					{/foreach}
					</ul>
				</div>
				<div class="blank1"></div>
			</div>
			<div class="blank"></div>
		</div><!--end box_main-->
	</div>
	<div class="blank"></div>
	{$recommend_cate_html}
</div><!--end index_left-->
<div class="index_right f_r">
	<a href="{url x="shop" r="mobile"}" target="_blank" title="手机客户端下载" class="index_mobile_download"></a>
	<div class="blank"></div>
	{$right_youhui_html}
	{$right_store_html}
	{if $down_load_list}
	<div class="blank"></div>
	<div class="index_right_box">
		<div class="box_top">
				<div class="f_l">最新动态</div>
		</div>
		<div class="box_main right_dp_box" id="right_dp_box" style="height:240px;">			
			{foreach from=$down_load_list item=down_item}
				<div class="index_dp_item">
					<div class="blank5"></div>
					{function name="get_user_name" v=$down_item.user_id} 下载了<a href="{url x="store" r="fdetail" p="id=$down_item.youhui_id"}" style="color:#069;" title="{$down_item.youhui_name}">{function name="msubstr" v=$down_item.youhui_name b=0 e=8}</a>
					<div class="blank1"></div>
					<span style="color:#999;">{function name="to_date" v=$down_item.create_time}</span>
					<div class="blank5"></div>
				</div>				
			{/foreach}			
		</div>
	</div>
	{/if}
	
</div>
<div class="blank"></div>

<!--hidden-->
<div id="bcate_box_drop_down" class="select_drop"></div>
<div id="scate_box_drop_down" class="select_drop"></div>
<div id="area_box_drop_down" class="select_drop"></div>
<div id="quan_box_drop_down" class="select_drop"></div>
<!--hidden-->

{include file="inc/footer.html"}